package com.it.service;

import com.it.bean.Fruit;

import java.util.List;

public interface FruitService {
    //获取所有的库存列表信息
    List<Fruit> getFruitList(int page, String queryParem) throws Exception;

    //根据fid获取特定的水果库存信息
    Fruit getFruitByFid(Integer fid) throws Exception;

    //修改指定的库存记录
    void updateFruit(Fruit fruit) throws Exception;

    //根据fid删除指定的库存记录
    void delFruit(Integer fid) throws Exception;

    //添加新库存记录
    void addFruit(Fruit fruit) throws Exception;

    int getFruitCount(String queryParem) throws Exception;
}
